plat/arm/css: Add SID registers for SGx platforms
authorChandni Cherukuri <[email protected]>
Sun, 16 Sep 2018 15:35:49 +0000 (21:05 +0530)
committerChandni Cherukuri <[email protected]>
Fri, 26 Oct 2018 06:45:44 +0000 (12:15 +0530)
Some of the SGx platforms use System Identification (SID) registers
for platform identification. Add support for these registers in css.

Change-Id: If00b18744a31ff2cf14338f18c8c680eb69c9027
Signed-off-by: Chandni Cherukuri <[email protected]>
include/plat/arm/css/common/css_def.h

index 048c58a3145de260259d2485e62494c5ba14332b..38533197737cf113bd960c9999c81329219ac6b9 100644 (file)
 #define SSC_REG_BASE                   0x2a420000
 #define SSC_GPRETN                     (SSC_REG_BASE + 0x030)
 
+/* System ID Registers Unit */
+#define SID_REG_BASE                   0x2a4a0000
+#define SID_SYSTEM_ID_OFFSET           0x40
+#define SID_SYSTEM_CFG_OFFSET          0x70
+
 /* The slave_bootsecure controls access to GPU, DMC and CS. */
 #define CSS_NIC400_SLAVE_BOOTSECURE    8
 
 #define SSC_VERSION_DESIGNER_ID_MASK           0xff
 #define SSC_VERSION_PART_NUM_MASK              0xfff
 
+#define SID_SYSTEM_ID_PART_NUM_MASK            0xfff
+
 /* SSC debug configuration registers */
 #define SSC_DBGCFG_SET         0x14
 #define SSC_DBGCFG_CLR         0x18